ratio algebra